﻿@{Layout = "~/Views/Shared/_Layout.cshtml";}

<h1>Showing Room @ViewData.Model.ID</h1>
<table class="Info">
    <tr>
        <th>Room</th>
        <td>
            @ViewData.Model.ID
        </td>
    </tr>
    <tr>
        <th>Room Name</th>
        <td>
            @ViewData.Model.Name
        </td>  
     </tr>
     <tr>
        <th>Room Capacity</th>
        <td>
            @ViewData.Model.Capacity people
        </td>  
    </tr>
    <tr>
        <th>Room Description</th>
        <td>
            @ViewData.Model.Description
        </td>  
    </tr>

    @foreach (var prop in ViewData.Model.Properties)
    {
    <tr>
        <th style="width:70px;">
            @prop.Name
        </th>  
        <td style="width:70px;">
            @prop.Value
        </td>  
    </tr>
    }
    <tr>
        <td>
            @Html.ActionLink("Edit Room", "Edit", new { id = ViewData.Model.ID })
        </td>
        <td>
            @Html.ActionLink("Delete Room", "Delete", new { id = ViewData.Model.ID})
        </td>
    </tr>
</table>
@Html.ActionLink("Back to list", "List")
